package com.ruoyi.project.system.role.domain.sync;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Map;

/**
 * @author renzhihao
 * @date 2023/12/11 14:44
 */
public class IAMSyncDept {
    private String id;
    private Integer syncType;
    private Long eventTimestamp;
    private Long createTime;

    private String taskId;
    private String appId;
    private String name;
    private Integer status;
    private String deptNum;

    /** 如果是映射组织属性就是用户组织的ID,如果是自定义属性就是应用部门的ID */
    private String deptId;
    private String parentNum;
    private String parentNums;
    private Map<String, Object> attrs;
    private Integer sort = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getSyncType() {
        return syncType;
    }

    public void setSyncType(Integer syncType) {
        this.syncType = syncType;
    }

    public Long getEventTimestamp() {
        return eventTimestamp;
    }

    public void setEventTimestamp(Long eventTimestamp) {
        this.eventTimestamp = eventTimestamp;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDeptNum() {
        return deptNum;
    }

    public void setDeptNum(String deptNum) {
        this.deptNum = deptNum;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getParentNum() {
        return parentNum;
    }

    public void setParentNum(String parentNum) {
        this.parentNum = parentNum;
    }

    public String getParentNums() {
        return parentNums;
    }

    public void setParentNums(String parentNums) {
        this.parentNums = parentNums;
    }

    public Map<String, Object> getAttrs() {
        return attrs;
    }

    public void setAttrs(Map<String, Object> attrs) {
        this.attrs = attrs;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("syncType", syncType)
                .append("eventTimestamp", eventTimestamp)
                .append("createTime", createTime)
                .append("taskId", taskId)
                .append("appId", appId)
                .append("name", name)
                .append("status", status)
                .append("deptNum", deptNum)
                .append("deptId", deptId)
                .append("parentNum", parentNum)
                .append("parentNums", parentNums)
                .append("attrs", attrs)
                .append("sort", sort)
                .toString();
    }
}
